﻿using System;
namespace SecurityModule.Parsers
{
    /// <summary>
    /// Represents a single result of parsing a tax or address file, this structure is the one to be sent back to the app for processing.
    /// </summary>
    [Serializable]
    public sealed class ParseResultItem
    {
        public int AccountNum { set; get; }
        public int Site { set; get; }

        public ResultKind ResultKind { get; set; }

        #region Tax Part
        /// <summary>
        /// When not null, a collection of 4 <see cref="ParseTaxResultItem"/> defining a tax entry for the related business.
        /// </summary>
        public ParseTaxResultItem[] TaxItems { get; set; }
        #endregion

        #region Address Part
        public string SIC { set; get; }
        public string CompanyName { set; get; }
        public string CompanyName2 { set; get; }
        public string Address1 { set; get; }
        public string Address2 { set; get; }
        public string City { set; get; }
        public string State { set; get; }
        public string ZipCode { set; get; }
        public string LocationCode { set; get; }
        #endregion
    }
}
